const  mongoose = require('mongoose')
const bookSchema = mongoose.Schema({
    name :String,
    author:String,
    price:Number
})

//生成Model
const  BookModel = mongoose.model('books',bookSchema)
module.exports = BookModel